﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dos.ORM;

namespace GongXianDCUI.Models
{
    /// <summary>
    /// 文章布局子菜单明细
    /// </summary>
    [Table("LayoutData")]
    [Serializable]
    public partial class LayoutData : Entity
    {
        #region Model
        private string _Rname;
        private int? _RfunctionID;
        private DateTime? _Rtimes;

        /// <summary>
        /// 
        /// </summary>
        [Field("Rname")]
        public string Rname
        {
            get { return _Rname; }
            set
            {
                this.OnPropertyValueChange("Rname");
                this._Rname = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("RfunctionID")]
        public int? RfunctionID
        {
            get { return _RfunctionID; }
            set
            {
                this.OnPropertyValueChange("RfunctionID");
                this._RfunctionID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Rtimes")]
        public DateTime? Rtimes
        {
            get { return _Rtimes; }
            set
            {
                this.OnPropertyValueChange("Rtimes");
                this._Rtimes = value;
            }
        }

        public List<Article> ArticleList
        {
            get
            {
                return articleList;
            }

            set
            {
                articleList = value;
            }
        }

        public Funcitions Functions
        {
            get
            {
                return functions;
            }

            set
            {
                functions = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
            };
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.Rname,
                _.RfunctionID,
                _.Rtimes,
            };
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._Rname,
                this._RfunctionID,
                this._Rtimes,
            };
        }
        /// <summary>
        /// 是否是v1.10.5.6及以上版本实体。
        /// </summary>
        /// <returns></returns>
        public override bool V1_10_5_6_Plus()
        {
            return true;
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "LayoutData");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Rname = new Field("Rname", "LayoutData", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field RfunctionID = new Field("RfunctionID", "LayoutData", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Rtimes = new Field("Rtimes", "LayoutData", "");
        }
        #endregion

        //文章集合
        private List<Article> articleList;
        private Funcitions functions;
    }







}
